import { useState } from 'react';

export interface PageInfoProps {
  pageNo?: number;
  pageSize?: number;
}
export interface CurrentSizeProps {
  current?: number;
  size?: number;
}
export const usePageInfo = () => {
  const [pageInfo, setPageInfo] = useState<PageInfoProps>({
    pageSize: 10,
    pageNo: 1,
  });
  return { pageInfo, setPageInfo };
};
export const useCurrentSize = () => {
  const [pageInfo, setPageInfo] = useState<CurrentSizeProps>({
    current: 1,
    size: 2,
  });
  return { pageInfo, setPageInfo };
};
